package com.eian.boot.module.system.user.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(name = "分配用户角色请求参数")
public class UserRoleAssignRequest {
    @Schema(description = "用户Id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "用户id不能为空")
    private Long id;

    @Schema(description = "角色ID列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "角色ID列表不能为空")
    private List<Long> roleIds;
}
